import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);

// import Order from "./"

// 路由配置：路径和组件的对应关系
// let routes = [...users,...books,...order,...school];
const routes = [
  // 首页
  {
    path: "/Pianju",
    name: "Pianju",
    component: () => import("../views/jiangliang/Pianju.vue"),
  },
  // 动态
  {
    path: "/dongtai",
    name: "dongtai",
    component: () => import("../views/jiangliang/dongtai.vue"),
  },
  // 我的
  {
    path: "/wode",
    name: "wode",
    component: () => import("../views/jiangliang/wode.vue"),
  },
  {
    path: "/xiaoanlie",
    name: "xiaoanlie",
    component: () => import("../views/jiangliang/xiaoanlie.vue"),
  },
  {
    path: "/shezhi",
    name: "shezhi",
    component: () => import("../views/jiangliang/shezhi.vue"),
  },
  // {
  //   path: "/",
  //   redirect: "../views/jiangliang/Pianju.vue",
  // },
];

// 创建Vue-router对象
export default routes
 
